#
# Package.
#

package iSOCK::Controller::Specification::Products;

#
# Parent.
#

use Moose;
use namespace::autoclean;

BEGIN { extends 'iSOCK::Controller::Root' }

#
# Documentation.
#

=head1 NAME

iSOCK::Controller::Specification::Products - Products Controller for iSOCK

=head1 DESCRIPTION

[enter your description here]

=head1 METHODS

=cut

#
# Subs.
#

sub index :Path :Args(0) {
  my ( $self, $c ) = @_;

  if ( my $user_r = $c->model ( 'App' )->user_r ( $c ) ) {
    $c->stash (
      user_r               => $user_r,
      products             => $c->model ( 'App' )->products_loh ( $c ),
      specification_tag_rs => $c->model ( 'App::SpecificationTag' ),
      user_to_product_rs   => $c->model ( 'App::UserToProduct'    ),
    );
  }

  $c->forward ( qw( iSOCK::Controller::Root render_view ) );
}

#
# Documentation.
#

=head1 AUTHOR

Xavier Caron

=head1 LICENSE

This library is free software, you can redistribute it and/or modify
it under the same terms as Perl itself.

=cut

#
# End of iSOCK::Controller::Productss.
#

1;
